CSharpTest.Net
Value Field
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > LListNode<T> Class : Value Field

Glossary Item Box

Gets/Sets the value of this node

Syntax

Visual Basic (Declaration) 
Public Value As T
C# 
public T Value

Example

Library/Library.Test/TestLinkList.cs

C#Copy Code
LListNode<string>.LList list = new LListNode<string>.LList();
Assert.IsTrue(list.IsEmpty);
list.AddLast("B");
Assert.IsFalse(list.IsEmpty);
list.AddFirst("A");
Assert.AreEqual("A", list.First.Value);
Assert.AreEqual("B", list.Last.Value);
VB.NETCopy Code
Dim list As New LListNode(Of String).LList()
Assert.IsTrue(list.IsEmpty)
list.AddLast("B")
Assert.IsFalse(list.IsEmpty)
list.AddFirst("A")
Assert.AreEqual("A", list.First.Value)
Assert.AreEqual("B", list.Last.Value)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys